package Sebastian_Konieczny;

import static java.lang.Math.sqrt;

public class Prostokat {
	private double a;
	private double b;
	
	public void setA(double x){
		x=a;
	}
	public double getA(){
		return a;
	}
	public void setB(double x){
		x=b;
	}
	public double getB(){
		return b;
	}
	
	
	public void ustal_wartosc(double x, double y){
		a = x;
		b = y;
	}
	public double pole(){
		return a * b;
	}
	public double dlugosc_przekatnej(){
		return sqrt(a * a + b * b);
	}
	
}
